﻿
namespace HookupAppForm.Dto
{
    public class CreateHKP_BlockDto
    {
        /// <summary>
        /// 系统编号
        /// </summary>
        public string SysNo { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public decimal Length { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal Width { get; set; }
        public decimal X { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal Y { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string BlockName { get; set; }
        /// <summary>
        /// 建筑
        /// </summary>
        public string Building { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        public string Floor { get; set; }
    }
    public class HKP_BlockDto
    {
        public long Id { get; set; }        
        /// <summary>
        /// 系统编号
        /// </summary>
        public string SysNo { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string BlockName { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public decimal Length { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal Width { get; set; }
        public decimal X { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public decimal Y { get; set; }        
        /// <summary>
        /// 建筑
        /// </summary>
        public string Building { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        public string Floor { get; set; }
        public string BuildAndFloor { get { return Building + "-" + Floor + " " + BlockName; } }
        public int OrderIndex { get; set; }
    }
}
